package com.zjitc;

import com.zjitc.scan.C;
import com.zjitc.scan.obj.A;
import com.zjitc.scan.obj.B;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/7 15:47
 * @description:
 */

public class App3 {

  public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(Configuration1.class);

    A bean = context.getBean(A.class);
    B bean1 = context.getBean(B.class);
    C bean2 = context.getBean(C.class);

    System.out.println( bean + "\n" + bean1 + "\n" + bean2);
  }

}
